package net.bac.sbe.common.sonar.report.impl;

import net.bac.sbe.common.api.view.ReportView;
import net.bac.sbe.common.sonar.report.SonarFilteredReportWriter;
import net.bac.sbe.common.xls.helper.SimpleMatrixXLSProcessor;

public class XLSSonarFilteredReportWriter implements SonarFilteredReportWriter {

	public void writeReport(ReportView view) {
		if(null==view.getFileName()){
			view.setFileName("SonarReport.xls");
		}
		SimpleMatrixXLSProcessor.generateXLSFromMatrix(view);
	}

}
